package com.bgs.mapper;

import com.bgs.pojo.Track;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bgs.pojo.vo.OrderDetail;
import com.bgs.pojo.vo.TrackThreeVoDetail;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 我的足迹 Mapper 接口
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
public interface TrackMapper extends BaseMapper<Track> {

    List<OrderDetail> ThreeSelectTrackRedis(String startTime, String endTime, Integer beforeUserId);

    Integer ThreeTrackRedis(Integer beforeUserId, Integer orderDetailId);

    @Select("select * from track where order_detail_id=#{orderDetailId}")
    Track ThreeSelectOne(Integer orderDetailId);

    Integer ThreeUpdate(Integer orderDetailId);
}
